<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Document</title>
    </head>
    <body>
        <script>
            let a = Number(window.parseInt(prompt('请输入数字')));
            if (a === 0) {
                alert("自动饮料机停止运行");
            } else if (a === 1) {
                alert("可口可乐");
            } else if (a === 2) {
                alert("雪碧");
            } else if (a === 3) {
                alert("鲜橙多");
            } else if (a === 4) {
                alert("冰红茶");
            } else if (a === 5) {
                alert("矿泉水");
            }else{
                alert("非法操作");
            }
        </script>
    </body>
</html>
